$(document).ready(function(){
	var show = 0;
	var sliderCount = $("#slide-par li").size();
	var i;
	$("#moveright").click(function(){
		show+=1;
		if(show==sliderCount){show=0;}
		for(i=0;i<=sliderCount;i++){
			if(i!=show)
				$("#slide-par li").eq(i).fadeOut("slow");
		}
		$("#slide-par li").eq(show).fadeIn("slow");
	});
	$("#moveleft").click(function(){
		show-=1;
		if(show<0){show=sliderCount;}
		for(i=0;i<=sliderCount;i++){
			if(i!=show)
				$("#slide-par li").eq(i).fadeOut("slow");
		}
		$("#slide-par li").eq(show).fadeIn("slow");
	});
	$("#page-warp").hover(
			function(){
				$("#moveleft").animate({left:0},500);
				$("#moveright").animate({right:0},500);
			},function(){
				$("#moveleft").animate({left:-100},500);
				$("#moveright").animate({right:-100},500);
			}
	);
});